package com.sasis.model;
// Generated 2007-6-7 11:25:22 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_TRANS_INSTRUCTION"
 *     
 */

public class FlightTransInstruction extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightTransferInfoId;
    private String instruction;
    private String joinFlag;
    private String needWait;
    private String needHotel;
    private String needCar;
    private String needFood;
    private String foodAddress;
    private Timestamp foodTime;
    private Integer operator;
    private Timestamp operatime;


    // Constructors

    /** default constructor */
    public FlightTransInstruction() {
    }

    
    /** full constructor */
    public FlightTransInstruction(Integer flightTransferInfoId, String instruction, String joinFlag, String needWait, String needHotel, String needCar, String needFood, String foodAddress, Timestamp foodTime, Integer operator, Timestamp operatime) {
        this.flightTransferInfoId = flightTransferInfoId;
        this.instruction = instruction;
        this.joinFlag = joinFlag;
        this.needWait = needWait;
        this.needHotel = needHotel;
        this.needCar = needCar;
        this.needFood = needFood;
        this.foodAddress = foodAddress;
        this.foodTime = foodTime;
        this.operator = operator;
        this.operatime = operatime;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_TRANSFER_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getFlightTransferInfoId() {
        return this.flightTransferInfoId;
    }
    
    public void setFlightTransferInfoId(Integer flightTransferInfoId) {
        this.flightTransferInfoId = flightTransferInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="INSTRUCTION"
     *             length="1024"
     *         
     */

    public String getInstruction() {
        return this.instruction;
    }
    
    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }
    /**       
     *      *            @hibernate.property
     *             column="JOIN_FLAG"
     *             length="1"
     *         
     */

    public String getJoinFlag() {
        return this.joinFlag;
    }
    
    public void setJoinFlag(String joinFlag) {
        this.joinFlag = joinFlag;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_WAIT"
     *             length="1"
     *         
     */

    public String getNeedWait() {
        return this.needWait;
    }
    
    public void setNeedWait(String needWait) {
        this.needWait = needWait;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_HOTEL"
     *             length="1"
     *         
     */

    public String getNeedHotel() {
        return this.needHotel;
    }
    
    public void setNeedHotel(String needHotel) {
        this.needHotel = needHotel;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_CAR"
     *             length="1"
     *         
     */

    public String getNeedCar() {
        return this.needCar;
    }
    
    public void setNeedCar(String needCar) {
        this.needCar = needCar;
    }
    /**       
     *      *            @hibernate.property
     *             column="NEED_FOOD"
     *             length="1"
     *         
     */

    public String getNeedFood() {
        return this.needFood;
    }
    
    public void setNeedFood(String needFood) {
        this.needFood = needFood;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ADDRESS"
     *             length="64"
     *         
     */

    public String getFoodAddress() {
        return this.foodAddress;
    }
    
    public void setFoodAddress(String foodAddress) {
        this.foodAddress = foodAddress;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_TIME"
     *             length="7"
     *         
     */

    public Timestamp getFoodTime() {
        return this.foodTime;
    }
    
    public void setFoodTime(Timestamp foodTime) {
        this.foodTime = foodTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATIME"
     *             length="7"
     *         
     */

    public Timestamp getOperatime() {
        return this.operatime;
    }
    
    public void setOperatime(Timestamp operatime) {
        this.operatime = operatime;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightTransferInfoId").append("='").append(getFlightTransferInfoId()).append("' ");			
      buffer.append("instruction").append("='").append(getInstruction()).append("' ");			
      buffer.append("joinFlag").append("='").append(getJoinFlag()).append("' ");			
      buffer.append("needWait").append("='").append(getNeedWait()).append("' ");			
      buffer.append("needHotel").append("='").append(getNeedHotel()).append("' ");			
      buffer.append("needCar").append("='").append(getNeedCar()).append("' ");			
      buffer.append("needFood").append("='").append(getNeedFood()).append("' ");			
      buffer.append("foodAddress").append("='").append(getFoodAddress()).append("' ");			
      buffer.append("foodTime").append("='").append(getFoodTime()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatime").append("='").append(getOperatime()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightTransInstruction) ) return false;
		 FlightTransInstruction castOther = ( FlightTransInstruction ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightTransferInfoId()==castOther.getFlightTransferInfoId()) || ( this.getFlightTransferInfoId()!=null && castOther.getFlightTransferInfoId()!=null && this.getFlightTransferInfoId().equals(castOther.getFlightTransferInfoId()) ) )
 && ( (this.getInstruction()==castOther.getInstruction()) || ( this.getInstruction()!=null && castOther.getInstruction()!=null && this.getInstruction().equals(castOther.getInstruction()) ) )
 && ( (this.getJoinFlag()==castOther.getJoinFlag()) || ( this.getJoinFlag()!=null && castOther.getJoinFlag()!=null && this.getJoinFlag().equals(castOther.getJoinFlag()) ) )
 && ( (this.getNeedWait()==castOther.getNeedWait()) || ( this.getNeedWait()!=null && castOther.getNeedWait()!=null && this.getNeedWait().equals(castOther.getNeedWait()) ) )
 && ( (this.getNeedHotel()==castOther.getNeedHotel()) || ( this.getNeedHotel()!=null && castOther.getNeedHotel()!=null && this.getNeedHotel().equals(castOther.getNeedHotel()) ) )
 && ( (this.getNeedCar()==castOther.getNeedCar()) || ( this.getNeedCar()!=null && castOther.getNeedCar()!=null && this.getNeedCar().equals(castOther.getNeedCar()) ) )
 && ( (this.getNeedFood()==castOther.getNeedFood()) || ( this.getNeedFood()!=null && castOther.getNeedFood()!=null && this.getNeedFood().equals(castOther.getNeedFood()) ) )
 && ( (this.getFoodAddress()==castOther.getFoodAddress()) || ( this.getFoodAddress()!=null && castOther.getFoodAddress()!=null && this.getFoodAddress().equals(castOther.getFoodAddress()) ) )
 && ( (this.getFoodTime()==castOther.getFoodTime()) || ( this.getFoodTime()!=null && castOther.getFoodTime()!=null && this.getFoodTime().equals(castOther.getFoodTime()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatime()==castOther.getOperatime()) || ( this.getOperatime()!=null && castOther.getOperatime()!=null && this.getOperatime().equals(castOther.getOperatime()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightTransferInfoId() == null ? 0 : this.getFlightTransferInfoId().hashCode() );
         result = 37 * result + ( getInstruction() == null ? 0 : this.getInstruction().hashCode() );
         result = 37 * result + ( getJoinFlag() == null ? 0 : this.getJoinFlag().hashCode() );
         result = 37 * result + ( getNeedWait() == null ? 0 : this.getNeedWait().hashCode() );
         result = 37 * result + ( getNeedHotel() == null ? 0 : this.getNeedHotel().hashCode() );
         result = 37 * result + ( getNeedCar() == null ? 0 : this.getNeedCar().hashCode() );
         result = 37 * result + ( getNeedFood() == null ? 0 : this.getNeedFood().hashCode() );
         result = 37 * result + ( getFoodAddress() == null ? 0 : this.getFoodAddress().hashCode() );
         result = 37 * result + ( getFoodTime() == null ? 0 : this.getFoodTime().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatime() == null ? 0 : this.getOperatime().hashCode() );
         return result;
   }   





}
